package com.yjc.bean;

import java.util.Date;

public class Employee {
    private int eId;
    private String eName;
    private int pId;
    private Date date;
    private Double salary;
    private int mgrpId;
    private int dId;
    private Employee employee;
    private Department department;

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Employee getEmployee() {
        return employee;
    }

    public void setEmployee(Employee employee) {
        this.employee = employee;
    }

    public Employee() {
    }

    public Employee(String eName, int pId, Date date, Double salary, int mgrpId, int dId) {
        this.eName = eName;
        this.pId = pId;
        this.date = date;
        this.salary = salary;
        this.mgrpId = mgrpId;
        this.dId = dId;
    }

    public int geteId() {
        return eId;
    }

    public void seteId(int eId) {
        this.eId = eId;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public int getMgrpId() {
        return mgrpId;
    }

    public void setMgrpId(int mgrpId) {
        this.mgrpId = mgrpId;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "eId=" + eId +
                ", eName='" + eName + '\'' +
                ", pId=" + pId +
                ", date=" + date +
                ", salary=" + salary +
                ", mgrpId=" + mgrpId +
                ", dId=" + dId +
                '}';
    }
}
